//
//  SNActivityIndicatorView.h
//  activityindicator
//
//  Created by Nova on 13-4-20.
//  Copyright (c) 2013年 SINA. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ActivityIndicatorView : UIView
{
    NSInteger   currentDisplayCount;
    NSInteger   indicatorCount;
    
    CGFloat     indicatorWidth;
    CGFloat     indicatorHeight;
    CGFloat     indicatorRadius;
    
    CGFloat     spinDuration;
    CGFloat     indicatorSpinDuration;
    
    UIImage    *indicatorImage;
    
    NSMutableArray *indicators;
}

@property (nonatomic, assign) NSInteger   currentDisplayCount;
@property (nonatomic, assign) NSInteger   indicatorCount;

@property (nonatomic, assign) CGFloat     indicatorWidth;
@property (nonatomic, assign) CGFloat     indicatorHeight;
@property (nonatomic, assign) CGFloat     indicatorRadius;

@property (nonatomic, assign) CGFloat     spinDuration;
@property (nonatomic, assign) CGFloat     indicatorSpinDuration;

@property (nonatomic, retain) UIImage    *indicatorImage;

/**
 * Modify indicatorCount, indicatorWidth, indicatorHeight, indicatorRadius, indicatorImage
 * MUST reload, use this method to commit changes(This method reload after execute propertyBlock).
 */
- (void)reloadItems:(void(^)(void))propertyBlock;
- (void)setCurrentDisplayCount:(NSInteger)newDisplayCount animated:(BOOL)animated;

- (void)startAnimating;
- (void)stopAnimating;

@end
